#include <stdio.h>

void sort(int *arr,int len ){
    for (size_t i = 0; i < len-1; i++)
    {
        for (size_t j = 0; j < len-i-1; j++)
        {
            if(arr[j]>arr[j+1]){
                int temp = arr[j];
                arr[j] = arr[j+1];
                arr[j+1] = temp;
            }
        }
        
    }
    
}

int main(int argc, char const *argv[])
{
    int arr[10] = {8 , 6 , 5 , 2 , 9 , 7 , 10 , 30 , 1 , 90};
    sort(arr,sizeof(arr)/sizeof(int));
    for (size_t i = 0; i < sizeof(arr)/sizeof(int); i++)
    {
        printf("%d ",arr[i]);
    }
    printf("\n");
    
    return 0;
}
